class CpuInfo(object):
    def __init__(self, *args, **kwargs):
        # 从关键字参数中赋值，如果关键字参数中没有相应的属性，则使用不定参数提供的值
        self.model = kwargs.get('model', args[0] if len(args) > 0 else '')
        self.logic_core_count = kwargs.get('logic_core_count', args[1] if len(args) > 1 else 0)
        self.physical_core_count = kwargs.get('physical_core_count', args[2] if len(args) > 2 else 0)
        self.current_frequency = kwargs.get('current_frequency', args[3] if len(args) > 3 else 0)
        self.max_frequency = kwargs.get('max_frequency', args[4] if len(args) > 4 else 0)
        self.min_frequency = kwargs.get('min_frequency', args[5] if len(args) > 5 else 0)
        self.temperature = kwargs.get('temperature', args[6] if len(args) > 6 else 0)
